package fun.chutianshu;

public class Person {
    private int age;
    private String name;

    //function 函数 非面向对象语言中的叫法
    //method 方法 面向对象

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //Constructor : 构造器
    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }
    public Person(){}

    //跑步方法
    public void run() {
        System.out.println("Person.run");
    }

}
